/*          FILE: debug.h
 *      Language: C
 *        Author: <Qiwei Feng> <Pufan He> <Yichao Zhou>
 *       Created: 2012-03-01
 * Last Modified: 2012-03-01
 *   Description: Debug header
 *       License: GNU GPL v3
 */

#ifndef __C_H_DEBUG
#define __C_H_DEBUG

/* log: record the debug message
 * Description:
 *      Group:  Which modules
 *      LEVEL:  0: Log
 *              1: Debug message
 *              2: Warning
 *              3: Error
 */
void log(char *message, char *group, int level);

/* set_log_level: set the level
 * Description: Only echo the message whose level is larger than parameter
 */
void set_log_level(int level);

#endif /* end of include guard */

/* vim: set ft=c ts=8 sts=8 sw=8 tw=79 ff=unix et : */
